<template>
  <div id="top-header">
    <dv-decoration-8 class="header-left-decoration" />
    <dv-decoration-5 class="header-center-decoration" />
    <dv-decoration-8 class="header-right-decoration" :reverse="true" />
    <div class="center-title">{{ tileType }} 检测结果数据</div>
  </div>
</template>

<script setup lang="ts" name="TopHeader">
import { toRefs, PropType, ref } from 'vue'

const props = defineProps({
  tileType: {
    type: String,
    default: ''
  }
})

let { tileType } = toRefs(props)

</script>

<style scoped>
#top-header {
  position: relative;
  width: 100%;
  height: 100px;
  display: flex;
  justify-content: space-between;
  flex-shrink: 0;
}
.header-center-decoration {
  width: 40%;
  height: 60px;
  margin-top: 30px;
}

.header-left-decoration,
.header-right-decoration {
  width: 25%;
  height: 60px;
}

.center-title {
  position: absolute;
  font-size: 24px;
  font-weight: bold;
  left: 50%;
  top: 15px;
  transform: translateX(-50%);
}
</style>
